<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:a="http://richfaces.org/a4j"
    xmlns:rich="http://richfaces.org/rich"
    template="layout/template.xhtml">

<ui:define name="body">

    <h:form id="travel" styleClass="edit">

        <rich:panel>
            <f:facet name="header">#{travelHome.managed ? 'Edit' : 'Add'} Travel</f:facet>










            <s:decorate id="nameField" template="layout/edit.xhtml">
                <ui:define name="label">Name</ui:define>
                <h:inputTextarea id="name"
                               cols="80"
                               rows="2"
                           required="true"
                              value="#{travelHome.instance.name}"/>
            </s:decorate>


            <s:decorate id="fromLatField" template="layout/edit.xhtml">
                <ui:define name="label">From lat</ui:define>
                <h:inputText id="fromLat"
                       required="true"
                          value="#{travelHome.instance.fromLat}">
                    <a:support event="onblur" reRender="fromLatField" bypassUpdates="true" ajaxSingle="true"/>
                </h:inputText>
            </s:decorate>


            <s:decorate id="fromLonField" template="layout/edit.xhtml">
                <ui:define name="label">From lon</ui:define>
                <h:inputText id="fromLon"
                       required="true"
                          value="#{travelHome.instance.fromLon}">
                    <a:support event="onblur" reRender="fromLonField" bypassUpdates="true" ajaxSingle="true"/>
                </h:inputText>
            </s:decorate>


            <s:decorate id="toLatField" template="layout/edit.xhtml">
                <ui:define name="label">To lat</ui:define>
                <h:inputText id="toLat"
                       required="true"
                          value="#{travelHome.instance.toLat}">
                    <a:support event="onblur" reRender="toLatField" bypassUpdates="true" ajaxSingle="true"/>
                </h:inputText>
            </s:decorate>


            <s:decorate id="toLonField" template="layout/edit.xhtml">
                <ui:define name="label">To lon</ui:define>
                <h:inputText id="toLon"
                       required="true"
                          value="#{travelHome.instance.toLon}">
                    <a:support event="onblur" reRender="toLonField" bypassUpdates="true" ajaxSingle="true"/>
                </h:inputText>
            </s:decorate>


            <s:decorate id="distanceField" template="layout/edit.xhtml">
                <ui:define name="label">Distance</ui:define>
                <h:inputText id="distance"
                          value="#{travelHome.instance.distance}">
                    <a:support event="onblur" reRender="distanceField" bypassUpdates="true" ajaxSingle="true"/>
                </h:inputText>
            </s:decorate>


            <s:decorate id="travelStateField" template="layout/edit.xhtml">
                <ui:define name="label">Travel state</ui:define>
                <h:inputText id="travelState"
                       required="true"
                           size="10"
                      maxlength="10"
                          value="#{travelHome.instance.travelState}">
                    <a:support event="onblur" reRender="travelStateField" bypassUpdates="true" ajaxSingle="true"/>
                </h:inputText>
            </s:decorate>


            <s:decorate id="calculatedRateField" template="layout/edit.xhtml">
                <ui:define name="label">Calculated rate</ui:define>
                <h:inputText id="calculatedRate"
                       required="true"
                          value="#{travelHome.instance.calculatedRate}">
                    <a:support event="onblur" reRender="calculatedRateField" bypassUpdates="true" ajaxSingle="true"/>
                </h:inputText>
            </s:decorate>


            <s:decorate id="createDateField" template="layout/edit.xhtml">
                <ui:define name="label">Create date</ui:define>
                <rich:calendar id="createDate"
                       required="true"
                          value="#{travelHome.instance.createDate}" datePattern="MM/dd/yyyy hh:mm a"/>
            </s:decorate>


            <s:decorate id="modifyDateField" template="layout/edit.xhtml">
                <ui:define name="label">Modify date</ui:define>
                <rich:calendar id="modifyDate"
                          value="#{travelHome.instance.modifyDate}" datePattern="MM/dd/yyyy hh:mm a"/>
            </s:decorate>


            <s:decorate id="deleteDateField" template="layout/edit.xhtml">
                <ui:define name="label">Delete date</ui:define>
                <rich:calendar id="deleteDate"
                          value="#{travelHome.instance.deleteDate}" datePattern="MM/dd/yyyy hh:mm a"/>
            </s:decorate>


            <s:decorate id="cronExpressionField" template="layout/edit.xhtml">
                <ui:define name="label">Cron expression</ui:define>
                <h:inputText id="cronExpression"
                       required="true"
                           size="45"
                      maxlength="45"
                          value="#{travelHome.instance.cronExpression}">
                    <a:support event="onblur" reRender="cronExpressionField" bypassUpdates="true" ajaxSingle="true"/>
                </h:inputText>
            </s:decorate>


            <s:decorate id="mondayField" template="layout/edit.xhtml">
                <ui:define name="label">Monday</ui:define>
                <h:selectBooleanCheckbox id="monday"
                                      value="#{travelHome.instance.monday}"/>
            </s:decorate>


            <s:decorate id="tuesdayField" template="layout/edit.xhtml">
                <ui:define name="label">Tuesday</ui:define>
                <h:selectBooleanCheckbox id="tuesday"
                                      value="#{travelHome.instance.tuesday}"/>
            </s:decorate>


            <s:decorate id="wednesdayField" template="layout/edit.xhtml">
                <ui:define name="label">Wednesday</ui:define>
                <h:selectBooleanCheckbox id="wednesday"
                                      value="#{travelHome.instance.wednesday}"/>
            </s:decorate>


            <s:decorate id="thursdayField" template="layout/edit.xhtml">
                <ui:define name="label">Thursday</ui:define>
                <h:selectBooleanCheckbox id="thursday"
                                      value="#{travelHome.instance.thursday}"/>
            </s:decorate>


            <s:decorate id="fridayField" template="layout/edit.xhtml">
                <ui:define name="label">Friday</ui:define>
                <h:selectBooleanCheckbox id="friday"
                                      value="#{travelHome.instance.friday}"/>
            </s:decorate>


            <s:decorate id="saturdayField" template="layout/edit.xhtml">
                <ui:define name="label">Saturday</ui:define>
                <h:selectBooleanCheckbox id="saturday"
                                      value="#{travelHome.instance.saturday}"/>
            </s:decorate>


            <s:decorate id="sundayField" template="layout/edit.xhtml">
                <ui:define name="label">Sunday</ui:define>
                <h:selectBooleanCheckbox id="sunday"
                                      value="#{travelHome.instance.sunday}"/>
            </s:decorate>


            <s:decorate id="beginDateField" template="layout/edit.xhtml">
                <ui:define name="label">Begin date</ui:define>
                <rich:calendar id="beginDate"
                       required="true"
                          value="#{travelHome.instance.beginDate}" datePattern="MM/dd/yyyy hh:mm a"/>
            </s:decorate>


            <s:decorate id="endDateField" template="layout/edit.xhtml">
                <ui:define name="label">End date</ui:define>
                <rich:calendar id="endDate"
                          value="#{travelHome.instance.endDate}" datePattern="MM/dd/yyyy hh:mm a"/>
            </s:decorate>


            <s:decorate id="singleDayField" template="layout/edit.xhtml">
                <ui:define name="label">Single day</ui:define>
                <h:selectBooleanCheckbox id="singleDay"
                                      value="#{travelHome.instance.singleDay}"/>
            </s:decorate>




            <div style="clear:both">
                <span class="required">*</span>
                required fields
            </div>

        </rich:panel>

        <div class="actionButtons">

            <h:commandButton id="save"
                          value="Save"
                         action="#{travelHome.persist}"
                       disabled="#{!travelHome.wired}"
                       rendered="#{!travelHome.managed}"/>

            <h:commandButton id="update"
                          value="Save"
                         action="#{travelHome.update}"
                       rendered="#{travelHome.managed}"/>

            <h:commandButton id="delete"
                          value="Delete"
                         action="#{travelHome.remove}"
                      immediate="true"
                       rendered="#{travelHome.managed}"/>

            <s:button id="cancelEdit"
                   value="Cancel"
             propagation="end"
                    view="/Travel.xhtml"
                rendered="#{travelHome.managed}"/>

            <s:button id="cancelAdd"
                   value="Cancel"
             propagation="end"
                    view="/#{empty travelFrom ? 'TravelList' : travelFrom}.xhtml"
                rendered="#{!travelHome.managed}"/>

        </div>
    </h:form>

<rich:tabPanel switchType="ajax">

    <rich:tab label="City by to city">
    <div class="association" id="cityByToCityParent">

        <h:outputText value="There is no cityByToCity associated with this travel."
                   rendered="#{travelHome.instance.cityByToCity == null}"/>

        <rich:dataTable var="_city"
                   value="#{travelHome.instance.cityByToCity}"
                rendered="#{travelHome.instance.cityByToCity != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="cityByToCityTable">
            <h:column>
                <f:facet name="header">Id city</f:facet>
                <h:outputText value="#{_city.idCity}"/>
            </h:column>
            <h:column>
                <f:facet name="header">State id state</f:facet>
                <h:outputText value="#{_city.state.idState}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Name</f:facet>
                <h:outputText value="#{_city.name}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Lat</f:facet>
                <h:outputText value="#{_city.lat}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Lon</f:facet>
                <h:outputText value="#{_city.lon}"/>
            </h:column>
        </rich:dataTable>

        <div class="actionButtons">
            <s:button id="#{travelHome.instance.cityByToCity != null ? 'changeParent' : 'selectParent'}" value="#{travelHome.instance.cityByToCity != null ? 'Change' : 'Select'} cityByToCity"
                       view="/CityList.xhtml">
                <f:param name="from" value="TravelEdit"/>
            </s:button>
        </div>

    </div>
    </rich:tab>

    <rich:tab label="State by from state">
    <div class="association" id="stateByFromStateParent">

        <h:outputText value="There is no stateByFromState associated with this travel."
                   rendered="#{travelHome.instance.stateByFromState == null}"/>

        <rich:dataTable var="_state"
                   value="#{travelHome.instance.stateByFromState}"
                rendered="#{travelHome.instance.stateByFromState != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="stateByFromStateTable">
            <h:column>
                <f:facet name="header">Id state</f:facet>
                <h:outputText value="#{_state.idState}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Country id country</f:facet>
                <h:outputText value="#{_state.country.idCountry}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Name</f:facet>
                <h:outputText value="#{_state.name}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Code</f:facet>
                <h:outputText value="#{_state.code}"/>
            </h:column>
        </rich:dataTable>

        <div class="actionButtons">
            <s:button id="#{travelHome.instance.stateByFromState != null ? 'changeParent' : 'selectParent'}" value="#{travelHome.instance.stateByFromState != null ? 'Change' : 'Select'} stateByFromState"
                       view="/StateList.xhtml">
                <f:param name="from" value="TravelEdit"/>
            </s:button>
        </div>

    </div>
    </rich:tab>

    <rich:tab label="Country by from country">
    <div class="association" id="countryByFromCountryParent">

        <h:outputText value="There is no countryByFromCountry associated with this travel."
                   rendered="#{travelHome.instance.countryByFromCountry == null}"/>

        <rich:dataTable var="_country"
                   value="#{travelHome.instance.countryByFromCountry}"
                rendered="#{travelHome.instance.countryByFromCountry != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="countryByFromCountryTable">
            <h:column>
                <f:facet name="header">Id country</f:facet>
                <h:outputText value="#{_country.idCountry}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Name</f:facet>
                <h:outputText value="#{_country.name}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Code</f:facet>
                <h:outputText value="#{_country.code}"/>
            </h:column>
        </rich:dataTable>

        <div class="actionButtons">
            <s:button id="#{travelHome.instance.countryByFromCountry != null ? 'changeParent' : 'selectParent'}" value="#{travelHome.instance.countryByFromCountry != null ? 'Change' : 'Select'} countryByFromCountry"
                       view="/CountryList.xhtml">
                <f:param name="from" value="TravelEdit"/>
            </s:button>
        </div>

    </div>
    </rich:tab>

    <rich:tab label="User *" labelClass="required">
    <div class="association" id="userParent">

        <h:outputText value="There is no user associated with this travel."
                   rendered="#{travelHome.instance.user == null}"/>

        <rich:dataTable var="_user"
                   value="#{travelHome.instance.user}"
                rendered="#{travelHome.instance.user != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="userTable">
            <h:column>
                <f:facet name="header">Id user</f:facet>
                <h:outputText value="#{_user.idUser}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Login</f:facet>
                <h:outputText value="#{_user.login}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Password</f:facet>
                <h:outputText value="#{_user.password}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Name</f:facet>
                <h:outputText value="#{_user.name}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Surname</f:facet>
                <h:outputText value="#{_user.surname}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Birth date</f:facet>
                <h:outputText value="#{_user.birthDate}">
                    <s:convertDateTime type="date" dateStyle="short"/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Create date</f:facet>
                <h:outputText value="#{_user.createDate}">
                    <s:convertDateTime type="both" dateStyle="short"/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Modify date</f:facet>
                <h:outputText value="#{_user.modifyDate}">
                    <s:convertDateTime type="both" dateStyle="short"/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Delete date</f:facet>
                <h:outputText value="#{_user.deleteDate}">
                    <s:convertDateTime type="both" dateStyle="short"/>
                </h:outputText>
            </h:column>
            <h:column>
                <f:facet name="header">Type</f:facet>
                <h:outputText value="#{_user.type}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Calculated rate</f:facet>
                <h:outputText value="#{_user.calculatedRate}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Enabled</f:facet>
                <h:outputText value="#{_user.enabled}"/>
            </h:column>
        </rich:dataTable>

        <div class="actionButtons">
            <s:button id="#{travelHome.instance.user != null ? 'changeParent' : 'selectParent'}" value="#{travelHome.instance.user != null ? 'Change' : 'Select'} user"
                       view="/UserList.xhtml">
                <f:param name="from" value="TravelEdit"/>
            </s:button>
        </div>

    </div>
    </rich:tab>

    <rich:tab label="State by to state">
    <div class="association" id="stateByToStateParent">

        <h:outputText value="There is no stateByToState associated with this travel."
                   rendered="#{travelHome.instance.stateByToState == null}"/>

        <rich:dataTable var="_state"
                   value="#{travelHome.instance.stateByToState}"
                rendered="#{travelHome.instance.stateByToState != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="stateByToStateTable">
            <h:column>
                <f:facet name="header">Id state</f:facet>
                <h:outputText value="#{_state.idState}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Country id country</f:facet>
                <h:outputText value="#{_state.country.idCountry}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Name</f:facet>
                <h:outputText value="#{_state.name}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Code</f:facet>
                <h:outputText value="#{_state.code}"/>
            </h:column>
        </rich:dataTable>

        <div class="actionButtons">
            <s:button id="#{travelHome.instance.stateByToState != null ? 'changeParent' : 'selectParent'}" value="#{travelHome.instance.stateByToState != null ? 'Change' : 'Select'} stateByToState"
                       view="/StateList.xhtml">
                <f:param name="from" value="TravelEdit"/>
            </s:button>
        </div>

    </div>
    </rich:tab>

    <rich:tab label="City by from city">
    <div class="association" id="cityByFromCityParent">

        <h:outputText value="There is no cityByFromCity associated with this travel."
                   rendered="#{travelHome.instance.cityByFromCity == null}"/>

        <rich:dataTable var="_city"
                   value="#{travelHome.instance.cityByFromCity}"
                rendered="#{travelHome.instance.cityByFromCity != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="cityByFromCityTable">
            <h:column>
                <f:facet name="header">Id city</f:facet>
                <h:outputText value="#{_city.idCity}"/>
            </h:column>
            <h:column>
                <f:facet name="header">State id state</f:facet>
                <h:outputText value="#{_city.state.idState}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Name</f:facet>
                <h:outputText value="#{_city.name}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Lat</f:facet>
                <h:outputText value="#{_city.lat}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Lon</f:facet>
                <h:outputText value="#{_city.lon}"/>
            </h:column>
        </rich:dataTable>

        <div class="actionButtons">
            <s:button id="#{travelHome.instance.cityByFromCity != null ? 'changeParent' : 'selectParent'}" value="#{travelHome.instance.cityByFromCity != null ? 'Change' : 'Select'} cityByFromCity"
                       view="/CityList.xhtml">
                <f:param name="from" value="TravelEdit"/>
            </s:button>
        </div>

    </div>
    </rich:tab>

    <rich:tab label="Country by to country">
    <div class="association" id="countryByToCountryParent">

        <h:outputText value="There is no countryByToCountry associated with this travel."
                   rendered="#{travelHome.instance.countryByToCountry == null}"/>

        <rich:dataTable var="_country"
                   value="#{travelHome.instance.countryByToCountry}"
                rendered="#{travelHome.instance.countryByToCountry != null}"
              rowClasses="rvgRowOne,rvgRowTwo"
                      id="countryByToCountryTable">
            <h:column>
                <f:facet name="header">Id country</f:facet>
                <h:outputText value="#{_country.idCountry}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Name</f:facet>
                <h:outputText value="#{_country.name}"/>
            </h:column>
            <h:column>
                <f:facet name="header">Code</f:facet>
                <h:outputText value="#{_country.code}"/>
            </h:column>
        </rich:dataTable>

        <div class="actionButtons">
            <s:button id="#{travelHome.instance.countryByToCountry != null ? 'changeParent' : 'selectParent'}" value="#{travelHome.instance.countryByToCountry != null ? 'Change' : 'Select'} countryByToCountry"
                       view="/CountryList.xhtml">
                <f:param name="from" value="TravelEdit"/>
            </s:button>
        </div>

    </div>
    </rich:tab>

    <rich:tab label="Seats">
        <h:form styleClass="association" id="seatsChildren">

            <h:outputText value="There are no seats associated with this travel."
                       rendered="#{empty travelHome.seats}"/>

            <rich:dataTable value="#{travelHome.seats}"
                           var="_seat"
                      rendered="#{not empty travelHome.seats}"
                    rowClasses="rvgRowOne,rvgRowTwo"
                            id="seatsTable">
                <rich:column sortBy="#{_seat.idSeat}">
                    <f:facet name="header">Id seat</f:facet>
                    <h:outputText value="#{_seat.idSeat}"/>
                </rich:column>
                <rich:column sortBy="#{_seat.seatNumber}">
                    <f:facet name="header">Seat number</f:facet>
                    <h:outputText value="#{_seat.seatNumber}"/>
                </rich:column>
                <rich:column sortBy="#{_seat.state}">
                    <f:facet name="header">State</f:facet>
                    <h:outputText value="#{_seat.state}"/>
                </rich:column>
            </rich:dataTable>

        </h:form>

        <f:subview rendered="#{travelHome.managed}" id="seats">
        <div class="actionButtons">
            <s:button id="addseat"
                   value="Add seat"
                    view="/SeatEdit.xhtml"
             propagation="none">
                 <f:param name="travelIdTravel"
                         value="#{travelHome.instance.idTravel}"/>
                 <f:param name="seatFrom" value="Travel"/>
            </s:button>
        </div>
        </f:subview>
    </rich:tab>

    <rich:tab label="Matchs">
        <h:form styleClass="association" id="matchsChildren">

            <h:outputText value="There are no matchs associated with this travel."
                       rendered="#{empty travelHome.matchs}"/>

            <rich:dataTable value="#{travelHome.matchs}"
                           var="_match"
                      rendered="#{not empty travelHome.matchs}"
                    rowClasses="rvgRowOne,rvgRowTwo"
                            id="matchsTable">
                <rich:column sortBy="#{_match.idMatch}">
                    <f:facet name="header">Id match</f:facet>
                    <h:outputText value="#{_match.idMatch}"/>
                </rich:column>
                <rich:column sortBy="#{_match.createDate}">
                    <f:facet name="header">Create date</f:facet>
                    <h:outputText value="#{_match.createDate}">
                        <s:convertDateTime type="both" dateStyle="short"/>
                    </h:outputText>
                </rich:column>
                <rich:column sortBy="#{_match.seenDate}">
                    <f:facet name="header">Seen date</f:facet>
                    <h:outputText value="#{_match.seenDate}">
                        <s:convertDateTime type="both" dateStyle="short"/>
                    </h:outputText>
                </rich:column>
                <rich:column sortBy="#{_match.rejectDate}">
                    <f:facet name="header">Reject date</f:facet>
                    <h:outputText value="#{_match.rejectDate}">
                        <s:convertDateTime type="both" dateStyle="short"/>
                    </h:outputText>
                </rich:column>
            </rich:dataTable>

        </h:form>

        <f:subview rendered="#{travelHome.managed}" id="matchs">
        <div class="actionButtons">
            <s:button id="addmatch"
                   value="Add match"
                    view="/MatchEdit.xhtml"
             propagation="none">
                 <f:param name="travelIdTravel"
                         value="#{travelHome.instance.idTravel}"/>
                 <f:param name="matchFrom" value="Travel"/>
            </s:button>
        </div>
        </f:subview>
    </rich:tab>

    <rich:tab label="Dialogs">
        <h:form styleClass="association" id="dialogsChildren">

            <h:outputText value="There are no dialogs associated with this travel."
                       rendered="#{empty travelHome.dialogs}"/>

            <rich:dataTable value="#{travelHome.dialogs}"
                           var="_dialog"
                      rendered="#{not empty travelHome.dialogs}"
                    rowClasses="rvgRowOne,rvgRowTwo"
                            id="dialogsTable">
                <rich:column sortBy="#{_dialog.idDialog}">
                    <f:facet name="header">Id dialog</f:facet>
                    <h:outputText value="#{_dialog.idDialog}"/>
                </rich:column>
                <rich:column sortBy="#{_dialog.createDate}">
                    <f:facet name="header">Create date</f:facet>
                    <h:outputText value="#{_dialog.createDate}">
                        <s:convertDateTime type="both" dateStyle="short"/>
                    </h:outputText>
                </rich:column>
                <rich:column sortBy="#{_dialog.updateDate}">
                    <f:facet name="header">Update date</f:facet>
                    <h:outputText value="#{_dialog.updateDate}">
                        <s:convertDateTime type="both" dateStyle="short"/>
                    </h:outputText>
                </rich:column>
                <rich:column sortBy="#{_dialog.deleteDate}">
                    <f:facet name="header">Delete date</f:facet>
                    <h:outputText value="#{_dialog.deleteDate}">
                        <s:convertDateTime type="both" dateStyle="short"/>
                    </h:outputText>
                </rich:column>
                <rich:column sortBy="#{_dialog.lastCommentDate}">
                    <f:facet name="header">Last comment date</f:facet>
                    <h:outputText value="#{_dialog.lastCommentDate}">
                        <s:convertDateTime type="both" dateStyle="short"/>
                    </h:outputText>
                </rich:column>
                <rich:column sortBy="#{_dialog.ownerSeenDate}">
                    <f:facet name="header">Owner seen date</f:facet>
                    <h:outputText value="#{_dialog.ownerSeenDate}">
                        <s:convertDateTime type="both" dateStyle="short"/>
                    </h:outputText>
                </rich:column>
                <rich:column sortBy="#{_dialog.otherSeenDate}">
                    <f:facet name="header">Other seen date</f:facet>
                    <h:outputText value="#{_dialog.otherSeenDate}">
                        <s:convertDateTime type="both" dateStyle="short"/>
                    </h:outputText>
                </rich:column>
            </rich:dataTable>

        </h:form>

        <f:subview rendered="#{travelHome.managed}" id="dialogs">
        <div class="actionButtons">
            <s:button id="adddialog"
                   value="Add dialog"
                    view="/DialogEdit.xhtml"
             propagation="none">
                 <f:param name="travelIdTravel"
                         value="#{travelHome.instance.idTravel}"/>
                 <f:param name="dialogFrom" value="Travel"/>
            </s:button>
        </div>
        </f:subview>
    </rich:tab>
</rich:tabPanel>
</ui:define>

</ui:composition>
